<?php

class Notice_model extends Base_Model
{
    Const TABLE = 'mod_notice';

    public function __construct()
    {
        parent::__construct();
        $this->load->database();
    }

    /**
     * 添加Notice
     *
     * @param $data
     * @return int
     */
    public function addNotice($data)
    {
        $this->db->insert(self::TABLE, $data);
        return $this->db->insert_id();
    }
}